echo -e "\033[1mEnsure that you have nodejs module. Also, I hardly recommend ripgrep for telescope. Script won't install them.\033[0m"
read -p "Press Enter to continue" < /dev/tty

sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
	       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

python3 -m pip install pylint

echo -e "\033[1mScript will delete init.vim at ~/.config/nvim/ (if necessary) to avoid init.vim and inig.lua conflict.\033[0m"
read -p "Press Enter to continue" < /dev/tty
rm -i ~/.config/nvim/init.vim

mkdir -p ~/.config/nvim
cp -i init.lua ~/.config/nvim/
cp -ir lua/ ~/.config/nvim/
nvim +"so %" install_plugins.vim
echo "Done!"

